package com.itpan.Service.Impl;

import com.itpan.Entity.StatsByPrice;
import com.itpan.Entity.StatsByT;
import com.itpan.Mapper.ProductMapper;
import com.itpan.Service.StatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class StatsServiceImpl implements StatsService {
    @Autowired
    private ProductMapper productMapper;
    @Override
    public List<StatsByPrice> countbyPrice() {
        return productMapper.statsbyprice();
    }

    @Override
    public List<StatsByT> countBysupplier() {
        return productMapper.statsbyCustomer();
    }

    @Override
    public List<StatsByT> countByTotalPriceToeveryEmployee() {
//        return productMapper.
        return null;
    }
}
